#include "StdAfx.h"
#include "MovableObject.h"

VAMPIRE_NAMESPACE_BEGIN

const TString& MovableObject::getName() const
{
	return mName;
}

void MovableObject::setAttachedNode( Node* node )
{
	mAttachedNode = node;
}

void MovableObject::setTransformMatrix()
{
	Matrix44 transform = mAttachedNode->getWorldTransformMatrix();
	gpDevice->SetTransform(D3DTS_WORLD, &(transform.mData));
}

const Node* MovableObject::getAttachedNode() const
{
	return mAttachedNode;
}

VAMPIRE_NAMESPACE_END
